import request from '@/utils/request'

// 查询V2市政公厕管养导入列表
export function listToiletImpBaseV2(query) {
  return request({
    url: '/toiletv2/toiletImpBaseV2/list',
    method: 'get',
    params: query
  })
}

// 查询V2市政公厕管养导入详细
export function getToiletImpBaseV2(batchNo) {
  return request({
    url: '/toiletv2/toiletImpBaseV2/' + batchNo,
    method: 'get'
  })
}

// 新增V2市政公厕管养导入
export function addToiletImpBaseV2(data) {
  return request({
    url: '/toiletv2/toiletImpBaseV2',
    method: 'post',
    data: data
  })
}

// 修改V2市政公厕管养导入
export function updateToiletImpBaseV2(data) {
  return request({
    url: '/toiletv2/toiletImpBaseV2',
    method: 'put',
    data: data
  })
}

// 删除V2市政公厕管养导入
export function delToiletImpBaseV2(batchNo) {
  return request({
    url: '/toiletv2/toiletImpBaseV2/' + batchNo,
    method: 'delete'
  })
}
export function importData(data) {
  return request({ url: '/toiletv2/toiletImpBaseV2/importData', method: 'post', data: data })
}
